<include file="Public:header" />
<link href="__PUBLIC__/Css/bootstrap.min14ed.css" rel="stylesheet" media="all" type="text/css" />
<!--<link href="__PUBLIC__/Css/datepicker3.css" rel="stylesheet" media="all" type="text/css" />-->
<!--<link href="__PUBLIC__/Css/laydate.css" rel="stylesheet" media="all" type="text/css" />
<link href="__PUBLIC__/Css/layui.css" rel="stylesheet" media="all" type="text/css" />-->


<script src="__PUBLIC__/Js/jquery-1.11.3.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/layui/build/css/layui.css">
<script src="__PUBLIC__/layui/build/layui.js" charset="utf-8"></script>
 <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layui.mobile.css">
<style>
    .tittleA{height:40px;line-height: 40px;border-bottom:1px solid #eee;padding-left:10px;font-size: 16px; }
    .zong{width:100%;height:40px;line-height: 40px;border-bottom: 1px solid #ddd}
    .tittle{width:100px;float:left;padding-left:10px;}
    .info{float:left}
    .pag{text-align: center}
    .mar-top{margin-top: 20px}
    input{padding:2px 12px;}
    .accounttitle h1{padding:0;}
    .laydate_box{left: 10px !important;}
</style>
<script language="JavaScript">
    ifcheck = true;

    function CheckAll(form) {
        for (var i = 0; i < form.elements.length - 2; i++) {
            var e = form.elements[i];
            e.checked = ifcheck;
        }
        ifcheck = ifcheck == true ? false : true;
    }
</script>

 <div class="accounttitle">
        <h1>会员审核 </h1></div>
<div class="ncenter_box">
    <!-- <div class="tittleA">会员审核<a href="__APP__"> [返回]</a></div> -->
<form name="form3" method="post" action="__URL__/auditMenberAC">
<table width="100%" class="tab3" border="0" cellpadding="3" cellspacing="1" id="tb1" bgcolor="#b9c8d0">
    <volist  name="list" id="vo" key="k">
        <div <if condition="$k%2== '0'"><if condition="$k%4== '0'"> style="background-color:#f2dede;border-left:2px solid #d73d32 ;"<else/> style="background-color:#fcf8e3;border-left:2px solid #f4b400 ;" </if ><else/>style="background-color:#dff0d8;border-left:2px solid #53a93f;"</if > >
        <div class="zong">
            <div class="tittle">&nbsp;</div>
            <div class="info"><input id="checkbox" type="checkbox" name=tabledb[] value="{$vo['id']}" class="btn2"></div>
        </div>
        <div class="zong">
            <div class="tittle">会员编号</div>
            <div class="info">{$vo['user_id']}</div>
        </div>
         <div class="zong">
            <div class="tittle">推荐人</div>
            <div class="info">{$vo['re_name']}</div>
        </div>
         <!--<div class="zong">
            <div class="tittle">报单中心</div>
            <div class="info">{$vo['shop_name']}</div>
        </div>-->
         <div class="zong">
            <div class="tittle">会员名</div>
            <div class="info">{$vo['user_name']}</div>
        </div>
        <!--   <div class="zong">
            <div class="tittle">收货姓名</div>
            <div class="info">{$vo['receive_name']}</div>
        </div> -->
        <!--   <div class="zong">
            <div class="tittle">收货电话</div>
            <div class="info">{$vo['receive_address']}</div>
        </div> -->
        <!--  <div class="zong">
            <div class="tittle">收货地址</div>
            <div class="info">{$vo['receive_tel']}</div>
        </div> -->
        <div class="zong">
            <div class="tittle">联系电话</div>
            <div class="info">{$vo['user_tel']}</div>
        </div>
         <div class="zong">
            <div class="tittle">注册时间</div>
            <div class="info">{$vo.rdt|date='Y-m-d H:i:s',###}</div>
        </div>
         <div class="zong">
            <div class="tittle">注册金额</div>
            <div class="info">{$vo['cpzj']}</div>
        </div>
        <div class="zong">
            <div class="tittle">会员级别</div>
            <div class="info"> {$voo[$vo['u_level']]}</div>
        </div>
          <div class="zong">
            <div class="tittle">状态</div>
            <div class="info"><eq name="vo['is_pay']" value='0'><span style="color:#FF0000;">未开通</span><else/>已开通</eq></div>
        </div>
</div>
    <div style="padding-bottom: 5px;"></div>
    </volist>


</table>

<div class="mar-top">
       <input name="全选" type="button" class="button_text button" id="AllX" onClick="CheckAll(this.form)" value="全选">
	  <input type="submit" name="action" value="激活会员" onclick="{if(confirm('确定开通会员吗?')){return true;}return false;}" class="button_text button">
	  <!--<input type="submit" name="action" value="设为空单" onclick="{if(confirm('确定将会员设为空单吗?')){return true;}return false;}" class="button_text">-->
	  <input type="submit" name="action" value="删除会员" onclick="{if(confirm('确定删除会员吗?')){return true;}return false;}" class="button_text button">
</div>

</form><br>
<div class="pag">{$page}</div>
<style>
    .infoA p{
        float: left;
    }
    .infoA{
        margin-top:10px;
    }
    .input-group{margin-top:15px;width: 100%}
</style>

<form style="margin-top:5px;text-align:center;" method='get' action="">
    第<input name="p" style="width: 50px;border:1px solid #cccc;padding-left:2px;" type="number">页
    <button style="width: 50px;border:none;background:#1296db;color: white;border-radius: 3px; ">跳转</button>
</form>
<div class="mar-top">
    <form method='post' action="__URL__/auditMenber/">搜索会员：
        <input type="text" name="UserID" title="帐号查询" style="border: 1px solid #eee">

        <div class="form-group" id="data_5">
            <!--<label class="font-noraml"> 开通时间</label>-->
            <div class="input-daterange input-group" id="datepicker">

                <input type="text" class="form-control" name="time1" id="time1"
                       placeholder="注册的开始日期" value="<notempty name='time1'>{$time1}</notempty>">
                <span class="input-group-addon">到</span>
                <input type="text" class="form-control" name="time2" id="time2"
                       placeholder="截止日期" value="<notempty name='time2'>{$time2}</notempty>">
            </div>
        </div>

    <input type="submit" name="Submit" value="查询"  class="button_text button"/>
    </form>
    </div>

</div>


<include file="Public:footer" />

<script type="text/javascript">
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        var start = {
            // min: laydate.now(-2)
            max: '2099-06-16 23:59:59'
            ,istoday: false
            ,choose: function(datas){
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };

        var end = {
            min: laydate.now()
            ,max: '2099-06-16 23:59:59'
            ,istoday: false
            ,choose: function(datas){
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };

        $('#time1').on('click',function(){
            start.elem = this;
            laydate(start);
        });
        $('#time2').on('click',function(){
            end.elem = this
            laydate(end);
        });
    });
</script>

<script>new TableSorter("tb1");</script>